Optimal. Leaf size=70 \[ \frac {x e^{-\frac {a}{b n}} \left (c x^n\right )^{-1/n} \text {Ei}\left (\frac {a+b \log \left (c x^n\right )}{b n}\right )}{b^2 n^2}-\frac {x}{b n \left (a+b \log \left (c x^n\right )\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.04, antiderivative size = 70, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {2297, 2300, 2178} \[ \frac {x e^{-\frac {a}{b n}} \left (c x^n\right )^{-1/n} \text {Ei}\left (\frac {a+b \log \left (c x^n\right )}{b n}\right )}{b^2 n^2}-\frac {x}{b n \left (a+b \log \left (c x^n\right )\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2178
Rule 2297
Rule 2300
Rubi steps
\begin {align*} \int \frac {1}{\left (a+b \log \left (c x^n\right )\right )^2} \, dx &=-\frac {x}{b n \left (a+b \log \left (c x^n\right )\right )}+\frac {\int \frac {1}{a+b \log \left (c x^n\right )} \, dx}{b n}\\ &=-\frac {x}{b n \left (a+b \log \left (c x^n\right )\right )}+\frac {\left (x \left (c x^n\right )^{-1/n}\right ) \operatorname {Subst}\left (\int \frac {e^{\frac {x}{n}}}{a+b x} \, dx,x,\log \left (c x^n\right )\right )}{b n^2}\\ &=\frac {e^{-\frac {a}{b n}} x \left (c x^n\right )^{-1/n} \text {Ei}\left (\frac {a+b \log \left (c x^n\right )}{b n}\right )}{b^2 n^2}-\frac {x}{b n \left (a+b \log \left (c x^n\right )\right )}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.12, size = 66, normalized size = 0.94 \[ \frac {x \left (e^{-\frac {a}{b n}} \left (c x^n\right )^{-1/n} \text {Ei}\left (\frac {a+b \log \left (c x^n\right )}{b n}\right )-\frac {b n}{a+b \log \left (c x^n\right )}\right )}{b^2 n^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.40, size = 95, normalized size = 1.36 \[ -\frac {{\left (b n x e^{\left (\frac {b \log \relax (c) + a}{b n}\right )} - {\left (b n \log \relax (x) + b \log \relax (c) + a\right )} \operatorname {log\_integral}\left (x e^{\left (\frac {b \log \relax (c) + a}{b n}\right )}\right )\right )} e^{\left (-\frac {b \log \relax (c) + a}{b n}\right )}}{b^{3} n^{3} \log \relax (x) + b^{3} n^{2} \log \relax (c) + a b^{2} n^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.31, size = 238, normalized size = 3.40 \[ \frac {b n {\rm Ei}\left (\frac {\log \relax (c)}{n} + \frac {a}{b n} + \log \relax (x)\right ) e^{\left (-\frac {a}{b n}\right )} \log \relax (x)}{{\left (b^{3} n^{3} \log \relax (x) + b^{3} n^{2} \log \relax (c) + a b^{2} n^{2}\right )} c^{\left (\frac {1}{n}\right )}} - \frac {b n x}{b^{3} n^{3} \log \relax (x) + b^{3} n^{2} \log \relax (c) + a b^{2} n^{2}} + \frac {b {\rm Ei}\left (\frac {\log \relax (c)}{n} + \frac {a}{b n} + \log \relax (x)\right ) e^{\left (-\frac {a}{b n}\right )} \log \relax (c)}{{\left (b^{3} n^{3} \log \relax (x) + b^{3} n^{2} \log \relax (c) + a b^{2} n^{2}\right )} c^{\left (\frac {1}{n}\right )}} + \frac {a {\rm Ei}\left (\frac {\log \relax (c)}{n} + \frac {a}{b n} + \log \relax (x)\right ) e^{\left (-\frac {a}{b n}\right )}}{{\left (b^{3} n^{3} \log \relax (x) + b^{3} n^{2} \log \relax (c) + a b^{2} n^{2}\right )} c^{\left (\frac {1}{n}\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [C] time = 0.49, size = 350, normalized size = 5.00 \[ -\frac {x \,c^{-\frac {1}{n}} \left (x^{n}\right )^{-\frac {1}{n}} \Ei \left (1, -\ln \relax (x )-\frac {-i \pi b \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )+i \pi b \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}+i \pi b \,\mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}-i \pi b \mathrm {csgn}\left (i c \,x^{n}\right )^{3}+2 b \ln \relax (c )+2 a +2 \left (-n \ln \relax (x )+\ln \left (x^{n}\right )\right ) b}{2 b n}\right ) {\mathrm e}^{-\frac {-i \pi b \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )+i \pi b \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}+i \pi b \,\mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}-i \pi b \mathrm {csgn}\left (i c \,x^{n}\right )^{3}+2 a}{2 b n}}}{b^{2} n^{2}}-\frac {2 x}{\left (-i \pi b \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )+i \pi b \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}+i \pi b \,\mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}-i \pi b \mathrm {csgn}\left (i c \,x^{n}\right )^{3}+2 b \ln \relax (c )+2 b \ln \left (x^{n}\right )+2 a \right ) b n} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ -\frac {x}{b^{2} n \log \relax (c) + b^{2} n \log \left (x^{n}\right ) + a b n} + \int \frac {1}{b^{2} n \log \relax (c) + b^{2} n \log \left (x^{n}\right ) + a b n}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {1}{{\left (a+b\,\ln \left (c\,x^n\right )\right )}^2} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{\left (a + b \log {\left (c x^{n} \right )}\right )^{2}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________